package com.esd.chyl.controller;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 入口界面，登录
 * 
 * @author snailzhang
 *
 */
@Controller
public class IndexController {

	private static final Logger logger = LogManager.getLogger(IndexController.class);

	@RequestMapping(value={"/index", "/chylIndex"})
	public String getIndex() {
		logger.info("跳转到首页");
		return "index";
	}
	@RequestMapping(value={"/myIndex"})
	public String myIndex() {
		logger.info("跳转到首页");
		return "index";
	}


	@RequestMapping("/test")
	public String getTest(Model model) {
		logger.info("跳转到测试页");
		model.addAttribute("msg", "fewf佛i额外计费无法 ");
		return "test";
	}
}
